package cn.tworice.client.dao;

import cn.tworice.common.entity.Answer;
import cn.tworice.common.entity.Topic;
import cn.tworice.common.entity.dto.TopicDto;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TopicDao {
    Integer queryTotal();

    List<TopicDto> queryList(int i, Integer pageSize);

    void insertTopic(Topic topic);

    void updateTopic(Topic topic);

    Integer delByIds(String[] id);

    void insertAnswer(List<Answer> answerList);

    List<Answer> queryAnswerByTopicId(String topicId);

    void delAnswerByTopicId(String[] id);

    List<TopicDto> queryTopicByBankId(String bankId);
}
